#!/bin/bash

start=2
end=30
for ((i=start; i<=end; i++)); do
    echo "-----------------${i}-----------"
    deal_date=$(date -d "${i} day ago" +%Y-%m-%d)
    echo "${deal_date}"          # 输出 yyyyMMdd 格式
    sh /home/cys/www/script/calculate_retetion_channel.sh ${deal_date}
done